import { baseURL, http} from '../conf'
import store from '@/store'
import qs from 'qs'

/*************************************** 页面接口API *******************************************/
// GET 请求
export const getTopLevel = (params = {}) => {
  return http.get(`${baseURL}/head/get_info`, { params }).then(res => res.data)
}

// POST 请求
export const modifyTopLevelInfo = (params = {}) => {
  return http.post(`${baseURL}/head/modify`, qs.stringify(params)).then(res => res.data)
}